# -*- coding: UTF-8 -*-
import traceback
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, BigInteger, String, DateTime, Boolean


class SysApis(Base):
    __tablename__ = 'sys_apis'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    path = Column(String(191), doc='api路径')
    description = Column(String(191), doc='api中文描述')
    api_group = Column(String(191), doc='api组')
    method = Column(String(191), default='POST', doc='')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, doc='')
    deleted = Column(Boolean, default=0, doc='')
